<template>
    <div>
        <div class="content">
            <div class="sup">
                {{$t('numofloginpwderr')}}
                <el-input class="handlewidth" v-model.trim="result.errCount" size="mini"></el-input>
            </div>
            <div class="sup">
                {{$t('loginpwdlasterr')}}
                <el-input class="brnwidth" v-model.trim="result.lastErrTime" size="mini"></el-input>
            </div>
        <!-- <el-button type="primary" size="mini" v-preventReClick>{{$t('resetlogin')}}</el-button> -->
        </div>
    <!-- <el-dialog :title="$t('mdfy')" :visible.sync="itemeditDialogVisible" width="30%" @close="itemeditDialogVisibleClosed(itemeditriskTypeForm)" :close-on-click-modal='isOk' :modal-append-to-body="false">
            <el-form :ref="itemeditriskTypeForm" :rules="itemeditRiskRul" :model="itemeditriskTypeForm" label-width="80px" :hide-required-asterisk="true">
                <el-form-item :label="$t('ruleitemname')" prop="riskRuleItemName">
                    <el-input v-model.trim="itemeditriskTypeForm.riskRuleItemName" :placeholder="$t('plsipt')"></el-input>
                </el-form-item>
                <el-form-item :label="$t('ruleitemenname')" prop="riskRuleItemNameEn">
                    <el-input v-model.trim="itemeditriskTypeForm.riskRuleItemNameEn" :placeholder="$t('plsipt')"></el-input>
                </el-form-item>
                <el-form-item :label="$t('triggercondition')" required v-if="isSymbol === 1">
                    <el-row :gutter="10">
                        <el-col :span="6">
                            <el-input class="specialc" v-model.trim="itemeditriskTypeForm.riskRuleItemKey" :placeholder="$t('plsipt')"></el-input>
                        </el-col>
                        <el-col :span="5">
                            <el-form-item prop="riskRuleItemValue1">
                                <el-input class="specialc" v-model.trim="itemeditriskTypeForm.riskRuleItemValue1" :placeholder="$t('plsipt')" prop="riskRuleItemValue1"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-input class="specialc" v-model.trim="itemeditriskTypeForm.riskRuleItemKey" :placeholder="$t('plsipt')" prop="riskRuleItemValue2"></el-input>
                        </el-col>
                        <el-col :span="5">
                            <el-form-item prop="riskRuleItemValue2">
                                <el-input class="specialc" v-model.trim="itemeditriskTypeForm.riskRuleItemValue2" :placeholder="$t('plsipt')"></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                </el-form-item>
                <el-form-item :label="$t('triggercondition')" required v-if="isSymbol === 0">
                    <el-col :span="20">
                        <el-input class="special" v-model.trim="itemeditriskTypeForm.riskRuleItemKey" :placeholder="$t('plsipt')"></el-input>
                    </el-col>
                    <el-col :span="4">
                        <el-form-item prop="riskRuleItemValue">
                            <el-input class="special" v-model.trim="itemeditriskTypeForm.riskRuleItemValue" :placeholder="$t('plsipt')"></el-input>
                        </el-form-item>
                    </el-col>
                </el-form-item>
                <el-form-item :label="$t('restperiod')" prop="timeLimit">
                    <el-input v-model.trim="itemeditriskTypeForm.timeLimit" :placeholder="$t('plsipt')"></el-input>
                </el-form-item>
                <el-form-item :label="$t('validitytype')" prop="timeLimitType">
                    <el-input :disabled="true" v-model.trim="itemeditriskTypeForm.timeLimitType" :placeholder="$t('plsipt')"></el-input>
                </el-form-item>
            </el-form>
            <span slot="footer" class="dialog-footer">
                <el-button type="primary" @click="itemeditRiskType(itemeditriskTypeForm)" v-preventReClick>{{$t('cfm')}}</el-button>
                <el-button @click="itemeditDialogVisible = false" v-preventReClick>{{$t('cnl')}}</el-button>
            </span>
        </el-dialog> -->
    </div>
</template>

<script>
import {
    getloginpwderrlist
} from '@/libs/reqlist.js'
export default {
    data() {
        return {
            result: {},
            select: {
                merId: ''
            }
        }
    },
    methods: {
        getLoginPwdErr() {
            getloginpwderrlist(JSON.stringify({ merId: this.select.merId })).then(res => {
                if (res.data.code === '000000') {
                    this.result = res.data.data
                    if (res.data.data.lastErrTime === null) {
                        this.result.lastErrTime = this.$t('nodata')
                    } else {
                        this.result.lastErrTime = res.data.data.lastErrTime
                    }
                }
            })
        }
    },
    mounted() {
          // 全局商户id
        this.select.merId = window.sessionStorage.getItem('merId')
        this.getLoginPwdErr()
    }
}
</script>

<style lang="less" scoped>
@import './loginPwd.less';
</style>
